<?php

namespace app\api\controller;

use think\Controller;

class School extends Controller
{
    //留学通
    public function school()
    {
        $school = model('common/School')
            -> where('status',1)
            -> field('region,cname,jname')
            -> select();
        if ($school){
            return json(['code'=>100,'msg' => '请求成功！','data'=>$school]);
        } else {
            return json(['code'=>404,'msg' => '请求失败！']);
        }
    }
}
